#ifndef THREAD_POOL_H_
#define THREAD_POOL_H_

#include <pthread.h>

#include "task_queue.h"

typedef struct thread_pool_s {
  pthread_t *tid_arr;
  int thread_num;
  task_queue_t task_queue;
  int exit_flag;
} thread_pool_t;

int thread_pool_init(thread_pool_t *thread_pool, int num);

#endif
